package com.jjy.admin.controller.predict;

import com.jjy.admin.domain.PredictSalaryDTO;
import com.jjy.admin.domain.TaskJob;
import com.jjy.admin.domain.TaskJobDTO;
import com.jjy.admin.service.common.CommonService;
import com.jjy.admin.service.predict.PredictService;
import com.jjy.admin.service.task.TaskService;
import com.jjy.common.annotation.ApiResource;
import com.jjy.common.domain.PageResult;
import com.jjy.common.domain.R;
import com.jjy.common.enums.ResBizTypeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * 薪资预测
 *
 * @author jjy
 */
@RestController
@RequestMapping("/sysFunctions/")
@ApiResource(name = "薪资预测", resBizType = ResBizTypeEnum.SYSTEM)
public class PredictController {

    @Autowired
    private CommonService commonService;
    @Autowired
    private PredictService predictService;

    private static final Logger log = LoggerFactory.getLogger(  PredictController.class);

    /**
     * 薪资预测
     */
    @GetMapping("/doPredictSalary")
    public R page(PredictSalaryDTO predictSalaryDTO) {

        String predictSalary = predictService.doPredictSalary(predictSalaryDTO);

        return R.ok().put(predictSalary);
    }



}